#include "tree.h"

void DeleteTree(Node **root) {
  if (*root == NULL) return;

  DeleteTree(&(*root)->left);
  DeleteTree(&(*root)->right);

  delete *root;
  *root = NULL;
}
